{extends file="$templateDir/layout/member/layout.tpl"}
{block name=body}
  <div class="container">
      <div class="member_title">
          <div class="member_title_left">会员资料完善</div>
          <div class="member_title_right"></div>
      </div>
      <div class="member_edit">
        <form method="post" id="frmedit">
          <div class="member_edit_li">
              <div class="member_edit_lable">卡号：</div>
              <div class="member_edit_ipt">{$member->card_no}</div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">余额：</div>
              <div class="member_edit_ipt">{$member->user_balance}</div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">积分：</div>
              <div class="member_edit_ipt">{$member->user_point}</div>
          </div>
          <!-- <div class="member_edit_li">
              <div class="member_edit_lable">卡有效期：</div>
              <div class="member_edit_ipt">{$member->user_expdate}</div>
          </div> -->
          <input type="hidden" name="cardno" id="cardno" value="{$member->card_no}">
          <div class="member_edit_li">
              <div class="member_edit_lable">姓名：</div>
              <div class="member_edit_ipt"><input type="text" name="realname" id="realname" class="ipt" value="{$member->user_realname}"></div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">性别：</div>
              <div class="member_edit_ipt">
                <select name="gender" class="ipt" id="gender">
                  <option value="1" {if $member->user_gender==1}selected{/if} >男</option>
                  <option value="2" {if $member->user_gender==2}selected{/if} >女</option>
                </select>
              </div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">生日：</div>
              <div class="member_edit_ipt">
                  <select id="tYEAR" name="tyear" size="1" onChange="createSelect()">
                      <option value="0">年</option>
                  </select>
                  <select id="tMON" name="tmon" size="1" onChange="createSelect()">
                      <option value="0">月</option>
                  </select>
                  <select id="tDAY" name="tday" size="1">
                      <option value="0">日</option>
                  </select>
                  <script type="text/javascript">
                      createSelect(1);
                      $("#tYEAR option[value='{$tyear}']").attr("selected", true);
                      $("#tMON option[value='{$tmon}']").attr("selected", true);
                      createSelect();
                      $("#tDAY option[value='{$tday}']").attr("selected", true);
                  </script> 
              </div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">手机：</div>
              <div class="member_edit_ipt"><input type="text" name="mobile" id="mobile" class="ipt" value="{$member->user_mobile}" readonly="true"></div>
          </div>
          
          <!-- <div class="member_edit_li">
              <div class="member_edit_lable">地址：</div>
              <div class="member_edit_ipt"><input type="text" name="address" id="address" class="ipt" value="{$member->user_address}"></div>
          </div> -->
          <div class="member_edit_li">
              <div class="member_edit_submit" id="member_edit_submit">提交</div>
          </div>
        </form>
      </div>
  </div>
{/block}
